from enum import Enum, StrEnum, IntEnum, unique
from typing import Dict

@unique
class EnvironmentEnum(StrEnum):
    DEV = "dev"
    TEST = "test"
    PROD = "prod"


@unique
class ResultCodeEnum(IntEnum):
    """响应状态码"""
    SUCCESS = 1
    FAIL = 0
    AUTH = 9


@unique
class LoginTypeEnum(IntEnum):
    """登录类型"""
    PASSWORD = 1                # 账号密码登录
    PHONE = 2                   # 手机号验证码登录

@unique
class DataFilterTypeEnum(IntEnum):
    """角色数据过滤权限"""
    ALL = 1             # 全部可见
    ONLY = 2            # 仅自己可见
    DEPT = 3            # 所在部门可见
    DEPTSUB = 4         # 所在部门及子部门可见